<?php
class Xmlopr extends Model {
	public function __construct() {
		parent::Model();
		
	}

	public function getAllType() {
		$result=$this->db->get('xml_type');
		if($result->num_rows() > 0) {
			$types=$result->result_array();
		} else {
			$types=-1;
		}
		return $types;
	}

	public function getDataByType($type) {


	}
}